\hypertarget{class_beautiful_soup_1_1_beautiful_s_o_a_p}{
\section{BeautifulSoup.BeautifulSOAP Class Reference}
\label{class_beautiful_soup_1_1_beautiful_s_o_a_p}\index{BeautifulSoup::BeautifulSOAP@{BeautifulSoup::BeautifulSOAP}}
}


Inheritance diagram for BeautifulSoup.BeautifulSOAP:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=400pt]{class_beautiful_soup_1_1_beautiful_s_o_a_p__inherit__graph}
\end{center}
\end{figure}


Collaboration diagram for BeautifulSoup.BeautifulSOAP:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=400pt]{class_beautiful_soup_1_1_beautiful_s_o_a_p__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{class_beautiful_soup_1_1_beautiful_s_o_a_p_a66a2f8253a886bc3d82411e5aeea7d03}{
def {\bfseries popTag}}
\label{class_beautiful_soup_1_1_beautiful_s_o_a_p_a66a2f8253a886bc3d82411e5aeea7d03}

\end{DoxyCompactItemize}


\subsection{Detailed Description}
\begin{DoxyVerb}This class will push a tag with only a single string child into
the tag's parent as an attribute. The attribute's name is the tag
name, and the value is the string child. An example should give
the flavor of the change:

<foo><bar>baz</bar></foo>
 =>
<foo bar="baz"><bar>baz</bar></foo>

You can then access fooTag['bar'] instead of fooTag.barTag.string.

This is, of course, useful for scraping structures that tend to
use subelements instead of attributes, such as SOAP messages. Note
that it modifies its input, so don't print the modified version
out.

I'm not sure how many people really want to use this class; let me
know if you do. Mainly I like the name.\end{DoxyVerb}
 

The documentation for this class was generated from the following file:\begin{DoxyCompactItemize}
\item 
BeautifulSoup.py\end{DoxyCompactItemize}
